home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / repair_arm.gsh < prev    next >
Text File  |  2000-08-22  |  3KB  |  124 lines

  1. // defines the repair arms
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_REPAIR_ARMS_GSH
  8. #define INCLUDED_REPAIR_ARMS_GSH
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. light Lit_RepairBeam
  13. {
  14.     red             5
  15.     green           5
  16.     blue            5
  17.     specular red    2
  18.     specular green    2
  19.     specular blue    2
  20.     range           10
  21. }
  22.  
  23. pgenerator Pgn_RepairBeam
  24. {
  25.     type shot
  26.     life infinite // well actually until the shot no longer exists
  27.     rate 100
  28.     // stream direction
  29.     x 0 y 0 z 0
  30.     // particle colour
  31.     red 0.6 green 0.6 blue 1 alpha 0.5
  32. }
  33.  
  34. projectile Prj_RepairBeam
  35. {
  36.     gravity        no    // is this missile affected by gravity
  37.     damage        -1    // in strength points
  38.     blast        0    // proximity damage (not yet supported)
  39.     max range    10    // in metres
  40. }
  41.  
  42. role Rol_RepairBeam : Rol_DefaultProjectile
  43. {
  44.     shape      Pgn_RepairBeam
  45.  
  46.     light      Lit_RepairBeam
  47.  
  48.     projectile Prj_RepairBeam
  49.  
  50.     identifier "repair_beam"
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////////
  54.  
  55. // REPAIR BEAM
  56. ammo
  57. {
  58.     weapon type        repair arm
  59.     ammo type        energy cells
  60.  
  61.     round time        0.2
  62.     reload time        2
  63.     life timer        0
  64.     magazine size    100
  65.     sound            laser sound
  66.  
  67.     file            "User Interface/CommWheel01.RIF"    // command wheel icon
  68.     name            "sub ammo laser ra"
  69.  
  70.     projectile        Rol_RepairBeam    // what it fires
  71.     firing speed    10         // m/s
  72. }
  73.  
  74.  
  75. /////////////////////////////////////////////////////////////////////////////////
  76.  
  77. shape Shp_RepairArm_Pickup
  78. {
  79.     file "objects\repair arm pickup A.rif"
  80.     name "repair arm pickup A"
  81. }
  82.  
  83. hierarchy Hcy_RepairArm_Inventory_Pickup
  84. {
  85.     file "objects\repair arm a.rif"
  86.     name "repair arm a"
  87.     hotspot none
  88. }
  89.  
  90. character Chr_RepairArm_Pickup : Chr_Default
  91. {
  92.     turning speed   0
  93.     walking speed   0
  94.     weapon        repair arm
  95.     strength        10        // initial strength points
  96.     aim        0
  97.     aggression    0.41        // 4 = weapon pickup
  98. }
  99.  
  100. role Rol_RepairArm_Pickup : Rol_DefaultPickup
  101. {
  102.     shape            Shp_RepairArm_Pickup
  103.  
  104.     inventory shape    Hcy_RepairArm_Inventory_Pickup
  105.  
  106.     character        Chr_RepairArm_Pickup
  107.  
  108.     identifier        "repair_arm"
  109.  
  110.     destructibility        Des_Explode
  111.  
  112.     armour            25
  113.  
  114.     description        GL_DESCRIPTION_REPAIR_ARM
  115.  
  116.     pickup name        repair arm pickup
  117.  
  118.     limit            7
  119. }
  120.  
  121. ////////////////////////////////////////////////////////////////////////////////////
  122.  
  123. // end wrapper - for preventing multiple or recursive inclusions
  124. #endif // !INCLUDED_REPAIR_ARMS_GSH